import React from "react";
import { Route } from "react-router-dom";

import App from "./App";
import Home from "./home/Index";
import About from "./about/Index";

import Hot from "./home/hot/Index";
import Wait from "./home/wait/Index";

const Router = () => {
  return (
    <App>
      <Route path="/home">
        <Home>
          <Route path="/home/hot">
            <Hot></Hot>
          </Route>
          <Route path="/home/wait">
            <Wait></Wait>
          </Route>
        </Home>
      </Route>
      <Route path="/about">
        <About />
      </Route>
    </App>
  );
};

export default Router;
